package com.example.wacoffee_user.utils;

public class CurrentHoler {
    private static final ThreadLocal<Integer> CURRENT_LOCAL=new ThreadLocal<>();
    public static void set(Integer id){
        CURRENT_LOCAL.set(id);
    }
    public static Integer getCurrentId(){
        return CURRENT_LOCAL.get();
    }
    public static void remove(){
        CURRENT_LOCAL.remove();
    }
}
